﻿@model IEnumerable<CarparkIMS_Model.likonPlateMapping>
@{
    ViewData["Title"] = "PlateList";
}

<h1>PlateList</h1>

<p>
    <a asp-action="PlateRegister">Create New</a>
</p>
<table class="table">
    <thead>
        <tr>
            <th>
                Plate No
            </th>
            <th>
                Card No
            </th>
        </tr>
    </thead>
    <tbody>
        @foreach (var item in Model) { 
        <tr>
            <td>
                @Html.DisplayFor(model => item.PlateNo)
            </td>
            <td>
                @Html.DisplayFor(model => item.CardID)
            </td>
            <td>
                <a asp-action="Delete" asp-route-id="@item.ID">Delete</a>
            </td>
        </tr>
        }
    </tbody>
</table>